package com.yzjs.common.base.mapper.column;

import com.yzjs.common.base.entity.column.TableEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface QueryDbInfoMapper {


    /**
     * 查询列名
     * @param db
     * @param tableName
     * @return
     */
    List<Map<String, String>> getColumns(@Param("db") String db,@Param("tableName") String tableName);
   // List<Map<String, String>> getColumns(@Param("tableName") String tableName);

    /**
     * 查询表信息
     * @param db
     * @param tableName
     * @return
     */
     TableEntity getTables(@Param("db")String db,@Param("tableName") String tableName);

    /**
     * 查询所有表信息
     * @param db
     * @return
     */
     List<TableEntity> getTablesList(@Param("db")String db);

}
